import _ from "lodash";
import path from 'path';

let config = {
  viewsPath: path.join(__dirname,'..', 'views'),
  staticPath: path.join(__dirname,'..', 'assets'),
  "env":process.env.NODE_ENV //"development" 、"production"  
};


//开发环境下
if(process.env.NODE_ENV == "development"){
  const devConfig = {
      port:8888
  };
  config = _.extend(config,devConfig);
}
//上线环境下
if(process.env.NODE_ENV == "production"){
  const proConfig = {
      port:9999
  };
  config = _.extend(config,proConfig);
}
console.log(config);
export default config;